Complete the square proof